﻿package frEngine.effectEditTool.manager
{
    import frEngine.animateControler.keyframe.*;
    import frEngine.effectEditTool.parser.def.*;

    public class AnimateControlerManager extends Object
    {

        public function AnimateControlerManager()
        {
            return;
        }// end function

        public static function getAnimateTypeByFlag(param1:String) : int
        {
            var _loc_2:int = 0;
            switch(param1)
            {
                case EAttributeType.X:
                {
                    _loc_2 = AnimateControlerType.PosX;
                    break;
                }
                case EAttributeType.Y:
                {
                    _loc_2 = AnimateControlerType.PosY;
                    break;
                }
                case EAttributeType.Z:
                {
                    _loc_2 = AnimateControlerType.PosZ;
                    break;
                }
                case EAttributeType.ScaleX:
                {
                    _loc_2 = AnimateControlerType.ScaleX;
                    break;
                }
                case EAttributeType.ScaleY:
                {
                    _loc_2 = AnimateControlerType.ScaleY;
                    break;
                }
                case EAttributeType.ScaleZ:
                {
                    _loc_2 = AnimateControlerType.ScaleZ;
                    break;
                }
                case EAttributeType.ScaleXYZ:
                {
                    _loc_2 = AnimateControlerType.ScaleXYZ;
                    break;
                }
                case EAttributeType.RotationX:
                {
                    _loc_2 = AnimateControlerType.RotationX;
                    break;
                }
                case EAttributeType.RotationY:
                {
                    _loc_2 = AnimateControlerType.RotationY;
                    break;
                }
                case EAttributeType.RotationZ:
                {
                    _loc_2 = AnimateControlerType.RotationZ;
                    break;
                }
                case EAttributeType.U:
                {
                    _loc_2 = AnimateControlerType.UoffsetControler;
                    break;
                }
                case EAttributeType.V:
                {
                    _loc_2 = AnimateControlerType.VoffsetControler;
                    break;
                }
                case EAttributeType.UV:
                {
                    _loc_2 = AnimateControlerType.UvStepControler;
                    break;
                }
                case EAttributeType.Alpha:
                {
                    _loc_2 = AnimateControlerType.alphaAnimateControler;
                    break;
                }
                case EAttributeType.UpRadius:
                {
                    _loc_2 = AnimateControlerType.CylinderUpRadiusControler;
                    break;
                }
                case EAttributeType.DownRadius:
                {
                    _loc_2 = AnimateControlerType.CylinderDownRadiusControler;
                    break;
                }
                case EAttributeType.UVRotate:
                {
                    _loc_2 = AnimateControlerType.UVRotateAnimationController;
                    break;
                }
                case EAttributeType.Color:
                {
                    _loc_2 = AnimateControlerType.colorAnimateControler;
                    break;
                }
                case EAttributeType.SwordShut:
                {
                    _loc_2 = AnimateControlerType.swordLight_Bone;
                    break;
                }
                case EAttributeType.SelectLineRoad:
                {
                    _loc_2 = AnimateControlerType.LineRoadControler;
                    break;
                }
                case EAttributeType.RimLight:
                {
                    _loc_2 = AnimateControlerType.RimLightController;
                    break;
                }
                case EAttributeType.MaskU:
                {
                    _loc_2 = AnimateControlerType.MaskUController;
                    break;
                }
                case EAttributeType.MaskV:
                {
                    _loc_2 = AnimateControlerType.MaskVController;
                    break;
                }
                case EAttributeType.MaskUVScale:
                {
                    _loc_2 = AnimateControlerType.MaskUVScaleController;
                    break;
                }
                case EAttributeType.MaskUVRot:
                {
                    _loc_2 = AnimateControlerType.MaskUVRotController;
                    break;
                }
                case EAttributeType.UVCenterScale:
                case EAttributeType.UVScale:
                {
                    _loc_2 = AnimateControlerType.UVCenterScaleController;
                    break;
                }
                case EAttributeType.Blight:
                {
                    _loc_2 = AnimateControlerType.blightAnimateControler;
                    break;
                }
                case EAttributeType.MaskAlpha:
                {
                    _loc_2 = AnimateControlerType.MaskAlphaController;
                    break;
                }
                case EAttributeType.RimLightStrength:
                {
                    _loc_2 = AnimateControlerType.RimLightStrengthController;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function changeBaseFlagToProperty(param1:String) : String
        {
            var _loc_2:String = null;
            switch(param1)
            {
                case EAttributeType.X:
                {
                    _loc_2 = "x";
                    break;
                }
                case EAttributeType.Y:
                {
                    _loc_2 = "y";
                    break;
                }
                case EAttributeType.Z:
                {
                    _loc_2 = "z";
                    break;
                }
                case EAttributeType.ScaleX:
                {
                    _loc_2 = "scaleX";
                    break;
                }
                case EAttributeType.ScaleY:
                {
                    _loc_2 = "scaleY";
                    break;
                }
                case EAttributeType.ScaleZ:
                {
                    _loc_2 = "scaleZ";
                    break;
                }
                case EAttributeType.RotationX:
                {
                    _loc_2 = "rotationX";
                    break;
                }
                case EAttributeType.RotationY:
                {
                    _loc_2 = "rotationY";
                    break;
                }
                case EAttributeType.RotationZ:
                {
                    _loc_2 = "rotationZ";
                    break;
                }
                case EAttributeType.Alpha:
                {
                    _loc_2 = "alpha";
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
